package vcp.models;

import client.Message;
import control.SimpleClient;
import db.parking.beans.Employee;
import vcp.common.AbstractModel;


/**
 * Login Model 
 *
 */
public class LoginModel  extends AbstractModel {	
	
	public void doLogin(Employee bean) {
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		msg = new Message(bean,"Login");	
		try {
				client.sendToServer(msg);			
		}
		catch (Exception ex)
		{
			 System.out.println(ex.toString()+"Emoloyee Login");
		}		
	}


    
	
}
